package com.acdc.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.acdc.business.mapper.RefundRecordMapper;
import com.acdc.business.domain.RefundRecord;
import com.acdc.business.service.IRefundRecordService;

/**
 * 用户退款记录Service业务层处理
 * 
 * @author acdc
 * @date 2025-08-26
 */
@Service
public class RefundRecordServiceImpl implements IRefundRecordService 
{
    @Autowired
    private RefundRecordMapper refundRecordMapper;

    /**
     * 查询用户退款记录
     * 
     * @param id 用户退款记录主键
     * @return 用户退款记录
     */
    @Override
    public RefundRecord selectRefundRecordById(Long id)
    {
        return refundRecordMapper.selectRefundRecordById(id);
    }

    /**
     * 查询用户退款记录列表
     * 
     * @param refundRecord 用户退款记录
     * @return 用户退款记录
     */
    @Override
    public List<RefundRecord> selectRefundRecordList(RefundRecord refundRecord)
    {
        return refundRecordMapper.selectRefundRecordList(refundRecord);
    }

    /**
     * 新增用户退款记录
     * 
     * @param refundRecord 用户退款记录
     * @return 结果
     */
    @Override
    public int insertRefundRecord(RefundRecord refundRecord)
    {
        return refundRecordMapper.insertRefundRecord(refundRecord);
    }

    /**
     * 修改用户退款记录
     * 
     * @param refundRecord 用户退款记录
     * @return 结果
     */
    @Override
    public int updateRefundRecord(RefundRecord refundRecord)
    {
        return refundRecordMapper.updateRefundRecord(refundRecord);
    }

    /**
     * 批量删除用户退款记录
     * 
     * @param ids 需要删除的用户退款记录主键
     * @return 结果
     */
    @Override
    public int deleteRefundRecordByIds(Long[] ids)
    {
        return refundRecordMapper.deleteRefundRecordByIds(ids);
    }

    /**
     * 删除用户退款记录信息
     * 
     * @param id 用户退款记录主键
     * @return 结果
     */
    @Override
    public int deleteRefundRecordById(Long id)
    {
        return refundRecordMapper.deleteRefundRecordById(id);
    }
}
